Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@janiscommerce/active-client
Advanced tools
A simple module for getting an Active Client from a field and a value
ActiveClient is a simple module for getting an Active Client from a field and a value. The module only has one method and a Model for the get.
npm install @janiscommerce/active-client
This package uses the Settings package for handle settings.
The setting key is clients
and the available settings are the following
Setting | Default Value | Description |
---|---|---|
databaseKey | _default | The database key from DB configuration |
table | clients | The clients table name |
getByField(field, value)
ASYNCHRONOUS, Search the client by a field and value given.field
: type String
, the field name. eg. 'name'.value
: type String|Integer
, the field value. eg. 'foo'.Returns a Object
with the client found or false
if client not found for field
with that value
.
const ActiveClient = require('@janiscommerce/active-client');
const client = await ActiveClient.getByField('name', 'client-name');
/**
Expected output:
{
id: 1,
name: 'client-name',
status: 5
}
*/
[1.2.2] - 2019-08-13
name
or storename
FAQs
A simple module for getting an Active Client from a field and a value
The npm package @janiscommerce/active-client receives a total of 1 weekly downloads. As such, @janiscommerce/active-client popularity was classified as not popular.
We found that @janiscommerce/active-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.